<?php
if (!defined('baseinfo')) {
    exitdata();
}


?>


 <?if(count($data['user'])==0){?>
 <!-- ================================= pop login ================================= -->
<div class="ovlPopGen wrpPopLI">
    <div class="popLS posPopLISU">
        <!-- Top Bar -->
        <div class="topLS clBd2 bdBtm">
            <div class="wrpTtlLS">
                <h1 class="ttlLS clTxt2 fs11 cutTxt">Log In</h1>
            </div>
            <div class="btnIco btnCncl closeLS">
                <span class="ico icoCloseLS"></span>
            </div>
            <div class="topBg clBg2"></div>
        </div>
        <div class="wrpOutBodyLS clBg2">
            <div class="wrpInBodyLS">
                <div class="bodyLS">
                    <div class="wrpWrnLS" id="validateerror-login" >

                    </div>
                    <form class="frmLS" id="fromlogin"  autocomplete="off" >
                        <fieldset class="wrpInpLI">
                        <!-- Input Username -->
                            <div class="wrpInInpUsn">
                                <input type="text" name="username" id="login-username" class="inpLS clBg3 clTxt2 fs04" placeholder="Username or Email" >
                            </div>
                        <!-- Input Password -->
                            <div class="wrpInInpPwd">
                                <input type="password" name="password" id="login-password" class="inpLS clBg3 clTxt2 fs04" Placeholder="Password" >
                            </div>
                        <!-- Button Login -->
                            <div class="wrpBtnLS">
                                <input type="submit" value="Log In" class="btnLS btnLI clBg1 clTxt2 fs07">
                            </div>
                        <!-- Remember Me & Forgot Password-->
                            <div class="wrpRemFgt">
                                <!-- Remember Me -->
                                <div class="wrpRem cutTxt">
                                    <label for="rem" class="lbRem clTxt3 fs02"><input type="checkbox" class="cbRem" id="rem">Remember Me</label>
                                </div>
                                <!-- Forgot Password -->
                                <div class="wrpFgt " onclick="redirectto('<?=baseinfo?>/forgetpassword')">
                                    <div class="btnFgt clTxt3 fs02">Forgot Password?</div>
                                </div>
                            </div>
                        </fieldset>
                    </form>
                </div>
                <!-- Facebook Login -->
                <div class="fbLI btnLI">
                    <div class="btnFbLI">
                        <div class="wrpIcoFb">
                            <div class="icoBgFb">
                                <span class="ico icoFb"></span>
                            </div>
                        </div>
                        <span class="wrpTxtFb clTxtW fs05">Log In with Facebook</span>  
                        <a href="<?=$data['linklogin']?>" onclick="loaddata()" ></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- ================================= pop signup ================================= -->
<div class="ovlPopGen wrpPopSU">
    <div class="popLS posPopLISU">
        <!-- Top Bar -->
        <div class="topLS clBd2 bdBtm">
            <div class="wrpTtlLS">
                <h1 class="ttlLS clTxt2 fs11">Sign Up</h1>
            </div>
            <div class="btnIco btnCncl closeLS">
                <span class="ico icoCloseLS"></span>
            </div>
            <div class="topBg clBg2"></div>
        </div>
        <div class="wrpOutBodyLS clBg2">
            <div class="wrpInBodyLS">
                <div class="bodyLS showsignup">
                    <div class="wrpWrnLS" id="validateerror-signup" >

                    </div>
                    <form class="formLS" id="fromsignup" autocomplete="off">
                        <!-- Input Username -->
                        <fieldset class="wrapInpSU">    
                            <div class="wrapInInpUsn">
                                <input type="text" class="inpLS clBg3 clTxt2 fs04" autocomplete="off" placeholder="Username" name="username"  >
                            </div>
                        <!-- Input Email -->    
                            <div class="wrapInInpEm">
                                <input type="text" class="inpLS clBg3 clTxt2 fs04" autocomplete="off" placeholder="Email" name="email" >
                            </div>
                        <!-- Input Password --> 
                            <div class="wrapInInpPwd">
                                <input type="password" class="inpLS clBg3 clTxt2 fs04" autocomplete="off" Placeholder="Password" name="password" >
                            </div>
                            
                            <div class="wrpAgTerm">
                                <div class="wrpAg">
                                    <input type="checkbox" name="agreecheck" class="cbAg" id="agreecheck">
                                    <label for="ag" class="lbAg clTxt3 fs03">I agree to the Terms &amp; Conditions (<a target="_blank" href="<?=baseinfo?>/assets/files/en.pdf">EN</a> / <a href="<?=baseinfo?>/assets/files/th.pdf">TH</a>)</label>
                                </div>
                            </div>
                            
                            
                        <!-- Button Sign Up -->
                            <div class="wrapBtnLS">
                                <input type="submit" value="Sign Up" class="btnLS clBg1 clTxt2 fs07">
                            </div>
                        </fieldset>
                    </form>
                </div>
                <!-- Facebook Login -->
                <div class="fbLI showsignup">
                    <div class="btnFbLI">
                        <div class="wrpIcoFb">
                            <div class="icoBgFb">
                                <span class="ico icoFb"></span>
                            </div>
                        </div>
                        <span class="wrpTxtFb clTxtW fs05">Log In with Facebook</span>  
                        <a href="<?=$data['linklogin']?>" onclick="loaddata()" ></a>  
                    </div>
                </div>
                
                <div class="bodyLS clBg2 showsignupsucess" style="display: none;">
                        <div class="wrpDesVrf">
                            <span class="desLS clTxt2 fs04">To complete sign up,<br />you must verify your email address.</span>
                        </div>
                    </div>
                
                
                
            </div>
        </div>  
    </div>
</div>
<!-- ================================= pop forgetpassword ================================= -->


<!-- ================================= pop signup verify ================================= -->

<script src="<?=baseinfo?>/js/login.js"></script>

<?}else{?>
    <!-- pop up add content -->
<div class="ovlPopGen wrpPopAddCtnt">
        <div class="popGen posPop">
            <div class="topGen clBd2 bdBtm">
                <div class="wrpTtlGen ">
                    <h1 class="ttlGen clTxt2 fs05 cutTxt">+ Add Content</h1>
                </div>
                <div class="btnIco closeGen">
                    <span class="ico icoCloseGen"></span>
                </div>
                <div class="topBgGen clBg3"></div>
            </div>
            <div class="bodyGen clBg3">
                <div class="bodyAddFt">
                    <p class="desAddFt clTxt3 fs03">Select Feature <?=$data['user']['roleid']?></p>
                    <ul class="addFtList clTxt3 fs04">
                    <?
                     if(count($data['feature']))
                     {
                      foreach($data['feature'] as $valuefeature)
                      {
                      
                       if(!is_array($valuefeature['showwrite']))
                         {
                         $valuefeature['showwrite']=array();
                         }
                      
                      if(@array_search($data['user']['roleid'],$valuefeature['showwrite'])!==false)
                      {
                      ?>
                        <li><a class="btnLstSBL" href="<?=baseinfo.'/'.$valuefeature['link'].'/add'?>" data-href="<?=$valuefeature['link']?>"><?=$valuefeature['name']?></a></li>
                      <?
                      
                      }
                      else if($valuefeature['showadd']==1&&$valuefeature['isiframe']!=1||($valuefeature['showadd']==$data['user']['roleid']))
                      {
                       
                     ?>
                        <li><a class="btnLstSBL" href="<?=baseinfo.'/'.$valuefeature['link'].'/add'?>" data-href="<?=$valuefeature['link']?>"><?=$valuefeature['name']?></a></li>
                      <?
                      }
                      }
                     }
                    
                    ?>                  

                    </ul>
                </div>
            </div>
        </div>
    </div>
    
    
    
<div class="ovlPopGen wrpPopCrteBc" >
        <div class="popGen posPop">
            <div class="topGen clBd2 bdBtm">
                <div class="wrpTtlGen">
                    <h1 class="ttlGen clTxt2 fs05">Create <?if (defined('BoardCastData')) { echo BoardCastData;?><?}else{?>Broadcast  <?}?></h1>
                </div>
                <div class="btnIco closeGen" onclick="$('.wrpPopCrteBc').fadeOut()">
                    <span class="ico icoCloseGen"></span>
                </div>
                <div class="topBgGen clBg3"></div>
            </div>
            <div class="bodyGen clBg3">
                <div class="bodyOutGen">
                    <div class="bodyInGen">
                        <p class="desAddGen clTxt3 fs03">Send the message or url link to all followers person.</p>

                            <fieldset class="wrpFrmTxtArea">
                                <div class="wrpInFrmTxtArea">
                                    <textarea maxlength="128" required="" id="txtbroadcast" autofocus="" class="frmTxtArea frmGen clBg4 clTxt3 fs03"></textarea>
                                </div>
                            </fieldset>
                            <div class="wrpCountCha clTxt3 fs02">
                                <span class="countCha">128</span>
                                <span class="txtCha">Characters</span>
                            </div>
                            <div class="wrpBtnGen">
                                <input type="button" value="Send" class="btnGen clTxtW btnSend cutTxt clBgSp2 fs04">
                                <input type="button" onclick="$('.wrpPopCrteBc').fadeOut()" value="Cancel" class="btnGen clTxtW btnCncl cutTxt clBgBt1 fs04">
                            </div>
           
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    
    
    
    
    <div class="ovlPopGen wrpPopSendMail" style="display: none;">
        <div class="popGen posPop">
            <div class="topGen clBd2 bdBtm">
                <div class="wrpTtlGen">
                    <h1 class="ttlGen clTxt2 fs05">Send Email</h1>
                </div>
                <div class="btnIco closeGen" onclick="$('.wrpPopSendMail').fadeOut()">
                    <span class="ico icoCloseGen"></span>
                </div>
                <div class="topBgGen clBg3"></div>
            </div>
            <div class="bodyGen clBg3">
                <div class="bodyOutGen">
                    <div class="bodyInGen">
                        <p class="desAddGen clTxt3 fs03">Send the message to all reserved person.</p>
                        <form class="wrpFrmGen" id="frombroadcast2">
                            <fieldset class="wrpFrmTxtArea">
                                <div class="wrpInFrmTxtArea">
                                    <input type="text" id="titleemail" placeholder="Subject" class="frmInpTxt frmGen clBg4 clTxt3 fs03 mgBtm10" kl_virtual_keyboard_secure_input="on">
                                    <textarea placeholder="Message" id="txtbroadcast2" class="frmTxtArea frmGen clBg4 clTxt3 fs03"></textarea>
                                </div>
                            </fieldset>
                            <div class="wrpBtnGen">
                                <input type="submit" value="Send" class="btnGen clTxtW btnSend cutTxt clBgSp2 fs04">
                                <input type="button" onclick="$('.wrpPopSendMail').fadeOut()" value="Cancel" class="btnGen clTxtW btnCncl cutTxt clBgBt1 fs04">
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    
    <div id="addpopimg">
    
    
    </div>  
    

<?


}?>

<div class="ovlPopGen wrpPopActTrip">
    <div class="popGen posPop">
        <div class="topGen clBd2 bdBtm">
            <div class="wrpTtlGen">
                <h1 class="ttlGen clTxt2 fs05">Activity</h1>
            </div>
            <div class="btnIco closeGen" onclick="$('.wrpPopActTrip').fadeOut()" >
                <span class="ico icoCloseGen"></span>
            </div>
            <div class="topBgGen clBg3"></div>
        </div>
        <!-- Body -->
        <div class="bodyGen clBg3">
            <div class="bodyOutGen">
                <div class="bodyInGen">
                    <p class="desAddGen clTxt2 boldGen fs03">Title</p>
                    <div class="wrpFrmGen">
                        <textarea readonly="" class="frmShw frmGen clBg4 clTxt3 fs03">Description</textarea>
                        <div class="wrpBtnGen">
                            <button type="button" class="btnGen btnOk clTxtW cutTxt clBgSp2 fs04" onclick="$('.wrpPopActTrip').fadeOut()">OK</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
    
<div class="ovlPopGen wrpPopEmbed" >
        <div class="popGen posPop">
            <div class="topGen clBd2 bdBtm">
                <div class="wrpTtlGen">
                    <h1 class="ttlGen clTxt2 fs05">Embed</h1>
                </div>
                <div class="btnIco closeGen">
                    <span class="ico icoCloseGen"></span>
                </div>
                <div class="topBgGen clBg3"></div>
            </div>
            <div class="bodyGen clBg3">
                <div class="bodyOutGen">
                    <div class="bodyInGen">

                        <div class="wrpFrmGen">
                            <textarea readonly="" class="frmTxtArea frmGen clBg4 clTxt3 fs03"></textarea>
                            <div class="wrpBtnGen">
                                <button type="button" class="btnGen clTxtW btnOk cutTxt clBgBt1 fs04">OK</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
<div class="ovlPopGen wrpPopQRCode" >
        <div class="popGen posPop">
            <div class="topGen clBd2 bdBtm">
                <div class="wrpTtlGen">
                    <h1 class="ttlGen clTxt2 fs05">QR Code</h1>
                </div>
                <div class="btnIco closeGen" onclick="$('.wrpPopQRCode').fadeOut()" >
                    <span class="ico icoCloseGen"></span>
                </div>
                <div class="topBgGen clBg3"></div>
            </div>
            <div class="bodyGen clBg3">
                <div class="bodyOutGen">
                    <div class="bodyInGen">

                        <div class="wrpFrmGen" style="text-align:center">

                          
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
      
 <div class="ovlPopGen wrpPopBcLkTxt" >
        <div class="popGen posPop">
            <div class="topGen clBd2 bdBtm">
                <div class="wrpTtlGen">
                    <h1 class="ttlGen clTxt2 fs05"><?if (defined('BoardCastData')) { echo BoardCastData;?><?}else{?>Broadcast  <?}?></h1>
                </div>
                <div class="btnIco closeGen">
                    <span class="ico icoCloseGen"></span>
                </div>
                <div class="topBgGen clBg3"></div>
            </div>
            <div class="bodyGen clBg3">
                <div class="bodyOutGen">
                    <div class="bodyInGen">
                        <div class="wrpBcAuthTime">
                            <div class="wrpBcAuth">
                                <a href="" id="broadcastyou"><img height="24" width="24" alt="img" src="/img/dfthmbuser.jpg" class="genImgUser bcImgUser">
                                <span class="genNameUserFull bcNameUser clTxt2 fs03">BigC Supercenter</span>
                                <span class="bcYou clTxt3 fs03">broadcast you</span> </a>
                            </div>
                            <div class="wrpBcTime">
                                <span class="bcTime clTxt3 fs02">10 days ago</span>
                            </div>
                        </div>
                        <div class="wrpFrmGen">
                            <textarea readonly="" class="frmTxtArea frmGen clBg4 clTxt3 fs03"></textarea>
                            <div class="wrpBtnGen">
                                <button type="button" class="btnGen clTxtW btnOk cutTxt clBgBt1 fs04">OK</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div> 
    
 <div class="ovlPopGen wrpPopShowRefNo" style="display: none;">
        <div class="popGen posPop">
            <div class="topGen clBd2 bdBtm">
                <div class="wrpTtlGen ">
                    <h1 class="ttlGen clTxt2 fs05 cutTxt">หมายเลขอ้างอิงการส่งสินค้า</h1>
                </div>
                <div class="btnIco closeGen" onclick="$('.wrpPopShowRefNo').fadeOut()">
                    <span class="ico icoCloseGen"></span>
                </div>
                <div class="topBgGen clBg3"></div>
            </div>
            <div class="bodyGen clBg3">
                <div class="bodyOutGen">
                    <div class="bodyInGen">
                        <div class="wrpFrmGen">
                            <div class="bodyRefNo fs04 clTxt2">
                                <div class="bdRefNo">
                                    <div class="inpShipInfo clearfix">
                                        <span class="boldGen fs03">Order ID</span>
                                        <span href="" class="showRefNo">ABC123456</span>
                                    </div>
                                    <div class="inpShipInfo clearfix">
                                        <span class="boldGen fs03">รหัสพัสดุ</span>
                                        <span class="showRefNo coderefno">xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx</span>
                                    </div>
                                    <div class="inpShipInfo clearfix">
                                        <span class="boldGen fs03">Note</span>
                                        <span class="showRefNo noterefno">xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>    
            </div>
        </div>
    </div>   
    
 <div class="wrprMiniPop wrpPopMiniTel" style="display: none;">  
        <div class="wrpMiniPop clBgBt1">
            <div class="miniPop">
                <label class="fs03 clTxtW" for="">Please Insert Your Telephone Number</label>
                <input type="text" class="clBg3 fs02" name="phoneuser" id="phoneuser">
                
                <div class="wrpBtnMiniPop">
                    <span class="btnIco btnMiniPop btnOK clTxtW fs03" onclick="savephonedata()">OK</span>
                </div>
            </div>
        </div>
    </div>

    
    <?if(preg_match('/(?i)msie [1-8]/',$_SERVER['HTTP_USER_AGENT'])){?>
    <div style="display: block;"   class="ovlPopGen wrpPopBrowserVer">
        <div class="popGen posPop">
            <div class="topGen clBd2 bdBtm">
                <div class="wrpTtlGen">
                    <h1 class="ttlGen clTxt2 fs05">Supported Internet Browsers</h1>
                </div>
                <div class="btnIco closeGen">
                    <span class="ico icoCloseGen"></span>
                </div>
                <div class="topBgGen clBg3"></div>
            </div>
            <div class="bodyGen clBg3">
                <div class="bodyOutGen">
                    <div class="bodyInGen">
                        <div class="wrpFrmGen">
                            <div class="browserVer">
                                <p class="fs03">"เนื่องจาก CanonLife ไม่รองรับ Browser เวอร์ชั่นที่คุณใช้อยู่ กรุณาอัพเดท Browser เพื่อการแสดงผลที่ดียิ่งขึ้น คลิก "</p>
                                <ul class="fs03">
                                    <li><a target="_blank" href="http://www.microsoft.com/windows/internet-explorer/default.aspx">Internet Explorer</a> : 9 or newer.</li>
                                    <li><a target="_blank" href="http://www.mozilla.com/">Firefox</a> : 15 or newer.</li>
                                    <li><a target="_blank" href="http://www.apple.com/safari/download/">Safari</a> : 5 or newer.</li>
                                    <li><a target="_blank" href="https://www.google.com/intl/en/chrome/browser/">Chrome</a> : all version.</li>
                                </ul>
                            </div>
                            <div class="wrpBtnGen">
                                <button onclick="$('.wrpPopBrowserVer').fadeOut()" type="button" class="btnGen clTxtW btnOk cutTxt clBgBt1 fs04">OK</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?}?>

 <?if($data['file']!="addfeature") {?>

 <script>
 var fid='<? if($data['fid']){ echo $data['fid']; }else{echo 0;}?>';
 var featurename='<? if($data['featurename']){ echo $data['featurename']; }?>';
 var userid="<?if($data['userdata']['userid']){echo $data['userdata']['userid'];}else{echo 0;}?>";

 var myuserroleid="<?if($data['user']['roleid']){echo $data['user']['roleid'];}else{echo 0;}?>";
 var fav="<?if($data['fav']){echo $data['fav'];}else{echo 0;}?>";
 var tag="<?if($data['tag']){echo $data['tag'];}else{echo 0;}?>";
 var targetusername="<?if($data['userdata']['username']){echo $data['userdata']['username'];}?>";
 var tagid=<?if(count($data['tagid'])){echo json_encode($data['tagid']);}else{ echo "{}";}?>;
 var tagarrname=<?if(count($data['tagarrname'])){echo json_encode($data['tagarrname']);}else{ echo "new Array()";}?>;
 var searchtext='<?=$data['searchtext']?>';
 var feed='<?=$data['feed']?>';
 var orderby=0;
 var getbanner=0;
 var bannerlanding=<?if($data['bannerlanding']){echo $data['bannerlanding'];}else{echo'""';}?>;
 var nearbyme="<?if($data['nearbyme']){echo $data['nearbyme'];}else{echo 0;}?>";
 var latset="<?if($data['latset']){echo $data['latset'];}else{echo 0;}?>";
 var lngset="<?if($data['lngset']){echo $data['lngset'];}else{echo 0;}?>";
 var distanceset="<?if($data['distanceset']){echo $data['distanceset'];}else{echo 100;}?>";
 
  var proidset="<?if($data['proidset']){echo $data['proidset'];}else{echo 0;}?>";
  var budidset="<?if($data['budidset']){echo $data['budidset'];}else{echo 0;}?>";
  var duidset="<?if($data['duidset']){echo $data['duidset'];}else{echo 0;}?>";
  var tripset="<?if($data['tripset']){echo $data['tripset'];}else{echo 0;}?>";
  var tagnamesearch=<?if($data['tagnamesearch']){echo $data['tagnamesearch'];}else{echo'""';}?>;
  var exifdatasearch="<?if($data['exifdatasearch']){echo $data['exifdatasearch'];}?>";
  var exifdatawhere="<?if($data['exifdatawhere']){echo $data['exifdatawhere'];}?>";
  
</script>
 

<div class="ovlPopLd">
    <?php @include('tool.php');?>
    <div class="ldContent">
            <div class="wrprLd clBg3 clBd2 bdFull"  >
                <div class="wrpOutLdCt ">
                   <div class="wrpInLd clTxt3 fs03 frameleft" id="main-left">
                        <div class="wrpUoutLd">
                            <div class="wrpUinLd">
                                <div class="wrpCt w640">
                                    <div class="wrpHdLd clBd2 bdBtm">
                                        <?php @include('landingitem/ldit01.php');?>
                                        <?php @include('landingitem/ldit02.php');?>
                                        <?php @include('landingitem/ldit03.php');?>
                                        <?php @include('landingitem/ldit04.php');?>
                                        <?php @include('landingitem/ldit05.php');?>
                                        <?php @include('landingitem/lditboobking.php');?>
                                        
                                    </div>
                                      <div class="wrpBodyLd clBd2 bdBtm">
                                      
                                    </div>
                                       <?php @include('landingitem/ldit14.php');?>
                                      <?php @include('landingitem/ldit15.php');?>
                                      <?php @include('landingitem/ldit16.php');?>
                                       <?php @include('landingitem/ldit17.php');?>
                                       
                                        <?php @include('landingitem/ldit19.php');?>
                                </div>
                            </div>
                        </div>
                   </div>
                   
                   <div class="wrpInLd clTxt3 fs03 framemiddle "  id="main-middle" >
                        <div class="wrpUoutLd">
                            <div class="wrpUinLd">  
                                <div class="wrpCt w640">
                                    <div class="wrpHdLd clBd2 bdBtm">
                                        <?php @include('landingitem/ldit01.php');?>
                                        <?php @include('landingitem/ldit02.php');?>
                                        <?php @include('landingitem/ldit03.php');?>
                                        <?php @include('landingitem/ldit04.php');?>
                                        <?php @include('landingitem/ldit05.php');?>
                                        <?php @include('landingitem/lditbooking.php');?>
                                    </div>
                                    <div class="wrpBodyLd clBd2 bdBtm">

                                    </div>
                                       <?php @include('landingitem/ldit14.php');?>
                                      <?php @include('landingitem/ldit15.php');?>
                                      <?php @include('landingitem/ldit16.php');?>
                                       <?php @include('landingitem/ldit17.php');?>
                                       
                                       <?php @include('landingitem/ldit19.php');?>
                                </div>
                           </div>
                        </div>
                   </div>

                    <div class="wrpInLd clTxt3 fs03 frameright" id="main-right" >
                        <div class="wrpUoutLd">
                            <div class="wrpUinLd">
                                <div class="wrpCt w640">
                                    <div class="wrpHdLd clBd2 bdBtm">
                                        <?php @include('landingitem/ldit01.php');?>
                                        <?php @include('landingitem/ldit02.php');?>
                                        <?php @include('landingitem/ldit03.php');?>
                                        <?php @include('landingitem/ldit04.php');?>
                                        <?php @include('landingitem/ldit05.php');?>
                                        <?php @include('landingitem/lditbooking.php');?>
                                    </div>
                                    <div class="wrpBodyLd clBd2 bdBtm">

                                    </div>
                                       <?php @include('landingitem/ldit14.php');?>
                                       <?php @include('landingitem/ldit15.php');?>
                                       <?php @include('landingitem/ldit16.php');?>
                                       <?php @include('landingitem/ldit17.php');?>
                                       
                                       <?php @include('landingitem/ldit19.php');?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
    </div>
</div>


<?


}
else
{
  ?>
  
 

<?
}



?>

<script>
 var myuserid="<?if($data['user']['userid']){echo $data['user']['userid'];}else{echo 0;}?>";
</script>

<div class="ovlPopGen wrpAddAct">  

</div>
<div class="ovlPopGen wrpAddAlert">  

</div>
<div class="ovlPopGen wrpPopAddPop">  

</div>

<div class="wrprMiniPop wrpPopMiniRgt">  

</div>

<div class="ovlPopGen wrpPopAddNewTrip">  

</div>


<div  class="ovlPopGen wrpPopFBFrst">
    <div class="popLSFB posPopLISU clearfix">
        <div class="btnIco btnCncl closeLSFB" onclick="$('.wrpPopFBFrst').fadeOut()">
            <span class="ico icoCloseLS"></span>
        </div>
        <div class="wrpOutBodyLS clBg2">
            <div class="wrpInBodyLS">
                <div class="bodyLS">
                    <div class="fbFst">
                        <span class="spnFbFrst fs07 clTxt2">Do you have an <?=NameDmconnex?> account?</span>
                        <div class="btnFbFrst">
                            <button class="clBg1 clBd2 btnFbFrstYes fs05 clTxt2" onclick="openloginacc()">Yes</button>
                            <button class="clBg1 clBd2 btnFbFrstNo fs05 clTxt2" onclick="opensignacc()">No</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>  
    </div>
</div>

<div  class="ovlPopGen wrpPopSUFBLI">
    <div class="popLSFB posPopLISU clearfix">
        <div class="btnIco btnCncl closeLSFB" onclick="$('.wrpPopSUFBLI').fadeOut()">
            <span class="ico icoCloseLS"></span>
        </div>
        <div class="wrpOutBodyLS clBg2">
            <div class="wrpInBodyLS">
                <div class="bodyLS">
                    <form class="formLS">
                        <fieldset class="wrprInpLSFBLI">
                            <div class="wrpOutInpLSFB">
                                <div class="wrpInpLSFB clearfix">
                                    <input type="text" name="lusername" placeholder="Username or Email" class="inpLSFB clBg3 clTxt2 fs04">
                                </div>  
                                <div class="wrpInpLSFB clearfix">
                                    <input type="password" name="lpassword" placeholder="Password" class="inpLSFB clBg3 clTxt2 fs04">
                                </div>
                                <div class="wrpRemFgt">
                                    <div class="wrpFgt">
                                        <div class="btnFgt clTxt3 fs02" onclick="linkto(baseinfo+'/forgetpassword')" >Forgot Password?</div>
                                    </div>
                                </div>
                            </div>
                            <div class="wrapBtnLSFB">
                                <input type="button" onclick="saveloginacc()" class="btnLS clBg1 clTxt2 fs07" value="Log In">
                            </div>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>  
    </div>
</div>

<div  class="ovlPopGen wrpPopSUFB">
    <div class="popLSFB posPopLISU clearfix">
        <div class="btnIco btnCncl closeLSFB" onclick="$('.wrpPopSUFB').fadeOut()">
            <span class="ico icoCloseLS"></span>
        </div>
        <div class="wrpOutBodyLS clBg2">
            <div class="wrpInBodyLS">
                <div class="bodyLS">
                    <div class="bioFb">
                        <div class="imgBioFb">
                            <img alt="" src="<?=baseinfo?>/img/dfthmbuser.jpg">
                        </div>
                        <div class="helBioFb">
                            <span class="clTxt2 fs05">Please create <?=NameDmconnex?> Account, </span>
                            <span class="clTxt2 fs05"><?if(count($data['user'])){ echo $data['user']['displayname'];   }?></span>
                        </div>
                    </div>
                    <form class="formLS" id="formsigupacc">
                        <fieldset class="wrprInpLSFB">
                            <div class="wrpOutInpLSFB">
                                <div class="wrpInpLSFB clearfix">
                                    <span class="clTxt2 fs04">Username</span>
                                    <input type="text" name="susername"  class="inpLSFB clBg3 clTxt2 fs04">
                                </div>  
                                <div class="wrpInpLSFB clearfix">
                                    <span class="clTxt2 fs04">Email</span>
                                    <input type="text" name="semail"  class="inpLSFB clBg3 clTxt2 fs04">
                                </div>
                                <div class="wrpInpLSFB clearfix">
                                    <span class="clTxt2 fs04">Password</span>
                                    <input type="password" name="spassword"  class="inpLSFB clBg3 clTxt2 fs04">
                                </div>
                                
                                <div class="wrpInpLSFB clearfix">
                                    <span class="clTxt2 fs04">Re Password</span>
                                    <input type="password" name="spassword2"  class="inpLSFB clBg3 clTxt2 fs04">
                                </div>
                            </div>
                            <div class="wrpAgTerm">
                                <div class="wrpAg">
                                    <input type="checkbox" class="cbAg" id="sagree">
                                    <label for="ag" class="lbAg clTxt3 fs03">I agree to the <a href="">terms &amp; conditions</a></label>
                                </div>
                            </div>
                            <div class="wrapBtnLSFB">
                                <input type="button" onclick="savesignupacc()" class="btnLS clBg1 clTxt2 fs07" value="Create Account">
                            </div>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>  
    </div>
</div>

      


<div class="ovlPopGen wrpPopAddPop2" >
<div class="wrpInPopAddPop2">   
<div class="btnIco closeGen" onclick="destroyclose()">
     <span class="ico icoCloseGen"></span></div>
<div class="royalSlider rsDefault visibleNearby" id="gallery-2">
</div> 
</div>  

</div>


<script src="<?=baseinfo?>/js/uidf.js"></script>
<!--<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true"></script>-->
<script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
<!--<script src="<?=baseinfo?>/js/vendor/gmap3.js"></script>-->
<script src="<?=baseinfo?>/js/vendor/jquery.timeago.js"></script>
<script src="<?=baseinfo?>/js/vendor/jquery.simplePagination.js"></script>
<script src="<?=baseinfo?>/js/notificationlist.js"></script>

<script src="<?=baseinfo?>/js/vendor/zero/ZeroClipboard.js"></script>


<script>
 function savesignupacc()
 {
 
 
var checkerror=new Array();
var rowerror=0;
var datasend={};
if($('input[name="susername"]').val()=="")
{
     alertwrongboxmsgonly("Please request field input");
     return false;
     //checkerror[rowerror++]={msg:"Please request field input",code:4,obj:$('input[name="susername"]')};
     

}
else
{
     datasend['susername']=$('input[name="susername"]').val();

}

if(validateEmail($('input[name="semail"]').val()))
{
  datasend['semail']=$('input[name="semail"]').val();
    
}else
{
  alertwrongboxmsgonly("Please request field input");
  return false;
  //checkerror[rowerror++]={msg:"Please request field input",code:4,obj:$('input[name="semail"]')};
    
}


if($('input[name="spassword"]').val()=="")
{
    alertwrongboxmsgonly("Please request field input");
    return false;
   // checkerror[rowerror++]={msg:"Please request field input",code:4,obj:$('input[name="spassword"]')};

}
else
{
    datasend['spassword']=$('input[name="spassword"]').val();


}


if($('input[name="spassword"]').val()!=$('input[name="spassword2"]').val())
{
    alertwrongboxmsgonly("Please Enter Same Password");
    return false;
   // checkerror[rowerror++]={msg:"Please request field input",code:4,obj:$('input[name="spassword"]')};

}
else
{
    datasend['spassword']=$('input[name="spassword"]').val();


}


if($("#formsigupacc #sagree").is(':checked'))
{
datasend['srememberme']=1;
//console.log(datasend);
//return false;

}else
{

alertwrongboxmsgonly("Please check field ");
  return false;
}


if(checkerror.length==0)
{
loaddata();
$.post(serviceinfo+"syncfacebookdata",datasend,
function(data){
loadclosedata();
if(data.error.response)
{

alertbox(data.error.error);

}else
{

location.href=baseinfo;


}


});


}else
{

//alertboxtext(checkerror,$("#validateerror-login"));

}












return false;
 }
 
 function saveloginacc()
 {
 
 
var checkerror=new Array();
var rowerror=0;
var datasend={};
if($('input[name="lusername"]').val()=="")
{
     alertwrongboxmsgonly("Please request field input");
     return false;
     //checkerror[rowerror++]={msg:"Please request field input",code:4,obj:$('input[name="susername"]')};
     

}
else
{

    if(validateEmail($('input[name="lusername"]').val()))
{
  datasend['email']=$('input[name="lusername"]').val();
    
}else
{
  datasend['username']=$('input[name="lusername"]').val();
  //checkerror[rowerror++]={msg:"Please request field input",code:4,obj:$('input[name="semail"]')};
    
}
     

}




if($('input[name="lpassword"]').val()=="")
{
    alertwrongboxmsgonly("Please request field input");
    return false;
   // checkerror[rowerror++]={msg:"Please request field input",code:4,obj:$('input[name="spassword"]')};

}
else
{
    datasend['password']=$('input[name="lpassword"]').val();


}




if(checkerror.length==0)
{
loaddata();
$.post(serviceinfo+"syncfacebookdata",datasend,
function(data){
loadclosedata();
if(data.error.response)
{

alertbox(data.error.error);

}else
{

location.href=baseinfo;


}


});


}else
{

//alertboxtext(checkerror,$("#validateerror-login"));

}












return false;
 }

 function openloginacc()
 {
 $('.wrpPopFBFrst').fadeOut();
 $('.wrpPopSUFBLI').fadeIn();
 
 
 }
 
 function opensignacc()
 {
 
 $('.wrpPopFBFrst').fadeOut();
 $('.wrpPopSUFB').fadeIn();
 }

 function showRecaptcha(element) {
           Recaptcha.create("6Lcy6ukSAAAAAKti5iraJnL89zDBu7s0nKenB-y_", element, 
           {
             theme: "red",
             callback: Recaptcha.focus_response_field
             }
             );
 }
 
 function checkfacebookconnect()
 {
 
 
loaddata();
 
 
 $.post(serviceinfo+"checkfacebookconnect",function(data){
  loadclosedata();
  if(data.data)
  {
   $('.wrpPopFBFrst').fadeIn();
  
  }else
  {

  
  }
  

 });
 
 }


 (function($){
 
 
    



$(document).ajaxError(
    function (event, jqXHR, ajaxSettings, thrownError) {
       
        loadclosedata();
        
       // alertwrongboxmsgonly('Error Please Again');
        //console.log('[event:' + event + '], [jqXHR:' + jqXHR + '], [ajaxSettings:' + ajaxSettings + '], [thrownError:' + thrownError + '])');

        
});


 
 
 <?

 if((NameDmconnex=="Infostant"||NameDmconnex=="Canonlife")&&!isset($_COOKIE['checkfacebookconnect'])&&count($data['user']) ){?>
 checkfacebookconnect();
 <?}?>
 <?
 

 if(count($data['user'])==0){?>
 getnotificationlist();


 <?}else{?>
 swapnotification(0);
 countnotification();
  getcount2cart();
 <?}?>
 
 $('#frmSrchData').submit(function() {

   if($("#qSrch").val())
   {

   location.href=baseinfo+'/search/'+encodeURIComponent($("#qSrch").val());
   }else
   {
   alertboxui('Please Input Field');
   }
    
    return false;
});
 
  $("div.ovlPopLd").not('div.ldContent').click(function(e) {
   if($(e.target).hasClass("ldContent"))
   {
   
   $(".ovlPopLd").fadeOut();
   closepopupsubmain();
   }
  });

  $("body").click(function(e) {
  
  if($(e.target).hasClass("rptLd")||$(e.target).hasClass("icoRptLd")||$(e.target).hasClass("shrLd")||$(e.target).hasClass("icoShrLd"))
  {
  
  
  }else
  {
  
  $('.shrLdPop').removeClass('sortHomeBlock');
  $('.rptMenu').removeClass('sortBBlock');
  
  }
  
  });
  
  
 $(document).keydown(function(e){
    if(diskeyborad==0)
    {
     if(e.which===37)
     {
     $(".ldTool .slideLdL").trigger('click');
     }else if(e.which===39)
     {
     
     $(".ldTool .slideLdR").trigger('click');
     }
     else if(e.which===27)
     {
     
     $(".ovlPopLd").fadeOut();
     }
  
      <?// if(NameDmconnex=="Canonlife"){  ?>
      var activeElem=$(".ovlPopLd #main-middle .wrpUinLd"),pixelsToScroll=100;
                
            if(e.which===38){ //scroll up
            if(NameDmconnex=='Canonlife')
{
               e.preventDefault();
            var   activeElemPos=Math.abs($(".ovlPopLd #main-middle .wrpUinLd .mCSB_container").position().top);
                if(pixelsToScroll>activeElemPos){
                    activeElem.mCustomScrollbar("scrollTo","top");
                }else{
                    activeElem.mCustomScrollbar("scrollTo",(activeElemPos-pixelsToScroll),{scrollInertia:400,scrollEasing:"easeOutCirc"});
                }
}   
                
            }
            else if(e.which===40){ //scroll down
            if(NameDmconnex=='Canonlife')
{
                e.preventDefault();
                var   activeElemPos=Math.abs($(".ovlPopLd #main-middle .wrpUinLd .mCSB_container").position().top);
                // console.log((activeElemPos+pixelsToScroll));
                activeElem.mCustomScrollbar("scrollTo",(activeElemPos+pixelsToScroll),{scrollInertia:400,scrollEasing:"easeOutCirc"});
}
            }
             if((e.keyCode == 37) || (e.keyCode == 39)) { 
                $(".ovlPopLd #main-middle .wrpUinLd").mCustomScrollbar("destroy");
            }
            
      <?//}?>
       }
  // if(event.which === 46 && ($('.selected').size() > 0)){
//       saveDelete();
//   }
});

var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
if(isAndroid) 
{
   
    
 //   alert('test1');
    
}
else
{
 //  alert('test2');

}
//alert('test');



})(jQuery);
</script>
<?
                        
   if($data['nowfeature']['isiframe']!=1)
   {

   ?>
<? 


$arrayplugins=jswidecard(rootpath.'/js/plugins'); 

    if(count($arrayplugins))
    {
    foreach($arrayplugins as $valueplugins)
    {
    
     echo '<script src="'.$valueplugins.'"></script>'."\n";
    
    }
    
    
    }

?>

<?
                        
   }
   ?>


